package com.itrip.itripauth.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itrip.itripauth.entity.LabelDic;
import com.itrip.itripauth.service.LabelDicService;
import com.itrip.itripauth.util.Dto;
import com.itrip.itripauth.util.DtoUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 标签字典表 前端控制器
 * </p>
 *
 * @author 四阶段项目二组
 * @since 2020-02-25
 */
@Api("标签字典表")
@RestController
@RequestMapping("/biz/api/hotel")
public class LabelDicController {
    @Autowired
    private LabelDicService labelDicService;

    @ApiOperation("查看酒店特色列表")
    @GetMapping("/queryhotelfeature")
    public Dto queryhotelfeature(){
         QueryWrapper<LabelDic> queryWrapper=new QueryWrapper<LabelDic>();
         queryWrapper.eq("parent_id",16);
         List<LabelDic> labelDics= labelDicService.list(queryWrapper);
         return  DtoUtil.returnDataSuccess(labelDics);
     }

}
